﻿using System.Collections.Generic;
using System;
using EFCoreRepositoryDemo.Entities;
using Microsoft.EntityFrameworkCore;

namespace EFCoreRepositoryDemo.Data
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {
        }

        // 数据库表映射（对应Products表）
        public DbSet<Product> Products => Set<Product>();
    }
}
